<template>
<div class="main">
     <div class="shanhetongguo" v-show="code==1">
                <img src="../../../assets/personal/images/cgjr.png">
                <br>
                <router-link :to="{name:'Index'}">
                <img src="../../../assets/personal/images/sxgx.png" class="img_wid">
                </router-link>
     </div>
      <div class="shanhetongguo" v-show="code ==0">
                <img src="../../../assets/personal/images/smsb.png">
                <br>
                <router-link :to="{name:'Index'}">
                <img src="../../../assets/personal/images/sxgx.png" class="img_wid">
                </router-link>
     </div>
</div>
</template>
<style scoped>
.main{
  width: 100%;
  height: 100%;
  background: url("../../../assets/personal/images/ewmbg.jpg") no-repeat;
  background-size: 100% 100%;
}
.shanhetongguo{
      width: 100%;
      height: 100%;
      padding-top: 45%;

  }
   .shanhetongguo img{
      margin: 30px auto;
      width:40%;
  }
  .img_wid{
   height:60px;
  }
</style>
<script>

export default {
  data () {
    return {
      code:1
    }
  },

  beforeCreate(){
    console.log("获取fk前");
    var fk = this.$route.query.fk;
    if(!!fk && /^\d+-\d+-\d+-no-\d+$/g.test(fk)){
      var ar = fk.split("-");
      window.localStorage.headid= ar[ar.length-1];
    }
  },
  mounted(){
    this.code = parseInt(this.$route.query.code);
    console.log(this.code);
  },
  methods: {

    }
}
</script>

